package com.myapplication.ui.listfragment.shoplistactivity;

import com.myapplication.base.IModel;
import com.myapplication.base.IPresenter;
import com.myapplication.base.Iview;
import com.myapplication.bean.ShopListBean;

import java.util.List;
import java.util.Map;

/**
 * Created by zitaojiang on 2016/10/6.
 */
public class Contract_ShopList {
    public interface View extends Iview {
        //访问网络数据成功
        public void onGetDataSuccess(List<ShopListBean.DataBean.ItemsBean> shopListItemBean);
        //访问网络数据失败
        public void onGetDataFail(String error);
    }

    public interface Model extends IModel {
        //获取主页面数据
        public void getData(final String type, final Map<String, String> params,Model_ShopList.SendShopListListener sendShopListListener);

    }

    public interface Presenter extends IPresenter {
        //获取主页面数据
        public void GetData(String type,Map<String, String> params);
    }
}
